package com.hushao.lims.weblims.service;

import com.hushao.lims.weblims.domain.EquipmentApply;
import com.hushao.lims.weblims.domain.EquipmentCirculate;

import java.util.List;

/**
 * @author 930588706
 * @date 18/1/22
 * 器材借还
 */
public interface EquipmentCirculateService {
    /**
     * 归还器材
     * @param equipmentCirculate
     * @return
     * @throws Exception
     */
    EquipmentCirculate giveBack(EquipmentCirculate equipmentCirculate, List<EquipmentApply> equipmentApplies) throws Exception;

    /**
     * 借出器材
     * @param equipmentCirculate
     * @return
     * @throws Exception
     */
    EquipmentCirculate loan(EquipmentCirculate equipmentCirculate, List<EquipmentApply> equipmentApplies)throws Exception;

    /**
     * 添加数据
     * @param equipmentCirculate
     * @return
     * @throws Exception
     */
    EquipmentCirculate save(EquipmentCirculate equipmentCirculate) throws Exception;
}
